import type { App } from "vue";
import SvgIcon from "./SvgIcon.vue";
import xcComponentsInstall from "./xcComponents";

export const makeInstaller = (components: { [key: string]: any } = {}) => {
  const install = (app: App) => {
    Object.keys(components).forEach((k) => app.component(k, components[k]));
    xcComponentsInstall(app);
  };

  return {
    version: "1.0",
    install
  };
};

export default makeInstaller({ SvgIcon });
